<?php
declare(strict_types=1);

namespace App\Resource\LotteryCrystal\Reward;


use Illuminate\Http\Resources\Json\JsonResource;

class Resource extends JsonResource
{
    public function toArray($request)
    {
        return [
            "id" => $this->reward->id,
            "name" => $this->reward->name,
            "icon" => $this->reward->picture,
            "coin" => $this->reward->price,
            // "type" => $this->reward_type,
            "prize_id" => $this->id
        ];
    }
}